package com.bigflexlib.x.Boolean
{
	public class BooleanUtil
	{

		public static function setExclusiveBooleanFlag( propName:*, group:Array, markedObject:Object=null ):Boolean
		{
			for each ( var obj:Object in group )
			{
				if ( obj === markedObject )
					if ( obj[propName] == true ) // already set to true on target
						return false;
						
				obj[propName] = false; // set all to false first
			}
			if ( markedObject )
				markedObject[propName] = true; // then target to true
			return true;
		}		

	}
}